// const CopyPlugin = require('copy-webpack-plugin')
const common = require('./webpack.common')
const CopyPlugin = require('copy-webpack-plugin')
const {CleanWebpackPlugin} = require('clean-webpack-plugin')
const { merge } = require('webpack-merge')
module.exports = merge(common, {
    mode: 'production',
    plugins: [
        new CleanWebpackPlugin(),
        new CopyPlugin({
            patterns: [
                {
                    from: './public',
                    to: '/dist'
                }
            ]
        })
    ]
})